#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>

extern int iint(const void* a, const void* b);

int maindsg2()
{
	int i = 0;
	int arr[10] = { 1,2,3,4,5,1,2,3,4,6 };
	qsort(arr, 10, sizeof(int), iint);

	for (i = 0; i < 10; i++)
	{
		if (arr[i] == arr[i + 1])
			i++;
		else
			printf("%d ", arr[i]);
	}
	printf("\n");
	return 0;
}